package com.t2two.example.common.generator;

import org.springframework.stereotype.Service;

/**
 * @description:
 * @company: 智蓝图汇
 * @author: bruce lan/00001
 * @date: 2022/5/26 15:21
 */
@Service
public class CodeService2 {
    private static final String url = "jdbc:mysql://192.168.1.74:3307/{{db_name}}?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull";

    public void codeGenerate(CodeParam param) {
        String dbName = param.getDatabaseName();
        String mysqlUrl = url.replace("{{db_name}}", dbName);
//        CodeGenerator2.generator(param.getModuleName(), param.getDirName(), param.getTableName(), param.getPackageName(), mysqlUrl,"haijiao_dev", "Nbzlth@0127");
    }

}
